package com.cnfangmao.masterdata.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cnfangmao.masterdata.model.BasicDataDependation;
import com.cnfangmao.masterdata.vo.BasicDataDependationVo;

/**
 * <p>
 * 主数据间依赖关系表 Mapper 接口
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
public interface BasicDataDependationDao extends BaseMapper<BasicDataDependation> {

	/**
	 * 
	 * @param dependationId
	 * @return
	 */
	public BasicDataDependationVo queryBasicDataDependationById(String dependationId);
	
	/**
	 * 
	 * @param sourceMetadataId
	 * @param sourceFieldId
	 * @return
	 */
	public BasicDataDependationVo queryBasicDataDependationBySourceId(String sourceMetadataId, String sourceFieldId);
	
	/**
	 * 
	 * @return
	 */
	public List<BasicDataDependationVo> queryAllBasicDataDependations();
	
	/**
	 * 
	 * @return
	 */
	public IPage<BasicDataDependationVo> queryBasicDataDependationsByPage(IPage<BasicDataDependationVo> page, @Param(Constants.WRAPPER) QueryWrapper<BasicDataDependationVo> queryWrapper);
}
